package com.kuangshenJVM.chapter10;

import com.kuangshenJVM.chapter14.MyClassLoader;

import java.io.FileInputStream;

public class Test10 extends ClassLoader {
     int n = 101;

    public Test10(){
        n = 202;
    }



    @Override
    protected Class<?> findClass(String name) throws ClassNotFoundException {
        return super.findClass(name);
    }

    public static void main(String[] args) {
        MyClassLoader[] myClassLoaders = new MyClassLoader[10];
        int oo = Son10.o;

        Father10 son10 = new Son10();
        son10.testF10();
        son10.testF101();

        Father101 son101 = new Son101();
        son101.father101();
    }
}
class Father10{
    private int i = 1;
    static int o = 10;
    public  void testF10(){}
    public void testF101(){}
}
class Son10 extends Father10 {

    @Override
    public void testF10() {
        super.testF10();
        System.out.println("son10 的 father10");
    }

    @Override
    public void testF101() {
        super.testF101();
        System.out.println("son10 的 father101");
    }
}

interface Father101{
     void father101();
}
class Son101 implements Father101{
    @Override
    public void father101() {
        System.out.println("Son101 实现了 Father101");
    }
}
